package com.timoon.webcomponent.utility.product.single.component;

import org.apache.wicket.markup.html.basic.Label;

import com.timoon.sample.dao.model.Product;
import com.timoon.webcomponent.utility.product.BaseProductPanel;

/**
 *<p>包装清单</p>
 *<p></p>
 *<p>Copyright:Copyright(c)2013.4.1</p>
 *<p>Company:timoon</p>
 *@author 付乐天
 *@version 1.0 */
public class ProductPackListPanel extends BaseProductPanel {

	private Product product;
	
	public ProductPackListPanel(String id,Product product) {
		super(id);
		// TODO Auto-generated constructor stub
		
		this.product=product;
		
		renderPanel();
	}

	private void renderPanel() {
		// TODO Auto-generated method stub
		
		renderPackList();
		
		renderCommentList();
	}

	private void renderCommentList() {
		// TODO Auto-generated method stub
		add(new ProductCommentListPanel("wk_comment_list", this.product.getId()));
	}

	private void renderPackList() {
		// TODO Auto-generated method stub
		add(new Label("wk_pack_list",this.product.getPackList()));
	}

}
